function PreloadCaptcha() {
	showRecaptcha();
}

function showRecaptcha() {
	Recaptcha.create("6Ldii9ASAAAAAB3HPonIPD2HltYyj36m1hq-xCJf",
			"dynamic_recaptcha", {
				theme : "white",
				callback : Recaptcha.focus_response_field
			});
}

var xmlhttp;
function submitFormData(name) {
	xmlhttp = null;
	if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc.
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {// code for IE6, IE5
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if (xmlhttp != null) {
		xmlhttp.onreadystatechange = state_Change;
		var url = "/register";
		var params = "name=" + name + "&recaptcha_challenge_field="
				+ Recaptcha.get_challenge() + "&recaptcha_response_field="
				+ Recaptcha.get_response();
		xmlhttp.open("POST", url, true);
		xmlhttp.setRequestHeader("Content-type",
				"application/x-www-form-urlencoded");
		xmlhttp.setRequestHeader("Content-length", params.length);
		xmlhttp.setRequestHeader("Connection", "close");
		xmlhttp.send(params);
	} else {
		alert("Your browser does not support XMLHTTP.");
	}
}